package cn.gok.practise1;

public class Child extends Parent{
    private int z;

    public Child(int x, int y) {
        super(x, y);
    }

    public Child(int x, int y, int z) {
        super(x, y);
        this.z = z;
    }

    public int getSum() {
        return super.getX()+super.getY()+this.z;
    }
}
